﻿using Model;
using System.Security.Cryptography.X509Certificates;

namespace IBll
{
    /// <summary>
    /// 房型接口
    /// </summary>
    public interface IStareBll
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="stare">房型表</param>
        /// <returns>往房型表里面添加数据</returns>
        Task<int> AddAnyns(Stare stare);

        /// <summary>
        /// 查询分页
        /// </summary>
        /// <param name="name">房型名称</param>
        /// <param name="maxstareMax">房型大小</param>
        /// <param name="minstareMax">房型大小</param>
        /// <param name="index">页数</param>
        /// <param name="size">条数</param>
        /// <returns>查询数据</returns>
        StareDto ShowStare(string? name, int? maxstareMax, int? minstareMax, int index, int size);

        /// <summary>
        /// 返填
        /// </summary>
        /// <param name="id">主键id</param>
        /// <returns>通过id获取一条信息</returns>
        Stare FindStare(int id);


        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="stare">房型表</param>
        /// <returns>往房型表里面添加数据</returns>
        Task<int> UpdateAnyns(Stare stare);







    }
}
